async function run() {

    console.log("a")
    await new Promise(resolve => setTimeout(resolve, 1000))
    console.log("b")
    await new Promise(resolve => setTimeout(resolve, 1000))
    console.log("c")
    await new Promise(resolve => setTimeout(resolve, 1000))
    console.log("d")

}

run()